<?php
function workground(){
	$workground=array(
		array('workground'=>'site',
			  'label'=>'站点',
			  'link'=>'Index/index'),
		array('workground'=>'content',
			  'label'=>'内容',
			  'link'=>'Category/index'),
		array('workground'=>'member',
			  'label'=>'会员',
			  'link'=>'User/index'),
		array('workground'=>'product',
			  'label'=>'商品',
			  'link'=>'Product/index'),
		 array('workground'=>'order',
			  'label'=>'订单',
			  'link'=>'Order/index'),
		);
	return $workground;
}

function subMenu($workground){
	return call_user_func('subMenu_'.$workground);
}

function subMenu_site(){
	return array(
		//array('group'=>'栏目管理','label'=>'栏目管理','subMenu'=>array(array('label'=>'栏目列表','link'=>'Category/index'),array('label'=>'内容管理','link'=>'Article/index')),
		);
}

function subMenu_content(){
	return array(
		array('group'=>'栏目管理','label'=>'栏目管理','subMenu'=>array(array('label'=>'栏目列表','link'=>'Category/index'),array('label'=>'内容管理','link'=>'Article/index')),
		));
}

function subMenu_member(){
	return array();
}
function subMenu_product(){
	return array();
}
function subMenu_order(){
	return array();
}

